﻿using Net5ApiAndEfMySql.DtoModel;
using Net5ApiAndEfMySql.Service;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using VueAndNetCoreEfApi.IRepository.SystemAdmin;
using VueAndNetCoreEfApi.IService.SystemAdmin;
using VueAndNetCoreEfApi.PoModel.SystemAdmin;

namespace VueAndNetCoreEfApi.Service.SystemAdmin
{
    public class LineService: BaseService,ILineService
    {
        private ILineRepository _ilineRepository;

        public LineService(ILineRepository ilineRepository)
        {
            _ilineRepository = ilineRepository;
        }
        //显示

        public PagerResult<LinePo> GetPageList(SearchModel sm)
        {
            return _ilineRepository.GetPageList(sm);
        }
        //添加
        public bool AddLinePo(LinePo lp)
        {
            return _ilineRepository.AddLinePo(lp);
        }
        //删除
        public bool DeleteLinePo(int os_id)
        {
            return _ilineRepository.DeleteLinePo(os_id);
        }
        /// <summary>
        /// 修改
        /// </summary>
        /// <param name="op"></param>
        /// <returns></returns>
        public bool UpdateLinePo(OutsourcePo op)
        {
            return _ilineRepository.UpdateLinePo(op);
        }

        public bool UpdateLinePo(LinePo po)
        {
            throw new NotImplementedException();
        }
    }
}
